package fitness;

import java.text.DecimalFormat;
import optimizers.ganeat.xor.ConstantsXOR;

import util.MyUtil;

public class PulseResult extends FitnessResult {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public double width;
	public double height;

	@Override
	public double finalResult() {
		return height / width;
	}

	@Override
	public String toString() {
		return common.Static.df4.format(finalResult()) + " = "
				+ common.Static.df4.format(height) + "/"
				+ common.Static.df4.format(width);
	}

	@Override
	public Double[] getDecomposition() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean goodSolution() {
		return finalResult() > 0.1;
	}

}
